package com.fa4j.system.login.model;


import com.fa4j.common.base.model.BaseEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Schema(description = "验证码类型")
@Getter
@AllArgsConstructor
public enum CaptchaType implements BaseEnum {

    SMS_LOGIN(1, "短信登录", 6, true, 5),
    MODIFY_PHONE(2, "修改手机号码", 6, true, 5),
    MODIFY_EMAIL(3, "修改邮箱", 6, true, 5),


    ;
    private final Integer code;
    private final String name;
    /**
     * 验证码长度
     */
    private final Integer length;

    /**
     * 是否只包含数字
     */
    private final boolean onlyNumber;

    /**
     * 过期分钟数
     */
    private final Integer expireMinutes;
}
